﻿using UnityEngine;

public class SettingsLevelModel {
	// === Public =====================================================================================================
	public static Vector2 FieldSize { get; private set; }
	public static int StoneCount { get; private set; }
	public static int AppleCount { get; private set; }

	public static void SetFieldWidth(int value) {
		FieldSize = new Vector2(value, FieldSize.y);
	}

	public static void SetFieldHeight(int value) {
		FieldSize = new Vector2(FieldSize.x, value);
	}

	public static void SetStoneCount(int value) {
		StoneCount = value;
	}

	public static void SetAppleCount(int value) {
		AppleCount = value;
	}

	// === Private ====================================================================================================
	static SettingsLevelModel() {
		const int fieldWidth = 10;
		const int fieldHeight = 10;
		FieldSize = new Vector2(fieldWidth, fieldHeight);
		StoneCount = 0;
		AppleCount = Constants.MIN_APPLES;
	}
}